package com.example.cartserver.service;

import com.example.server_engineer.controller.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "food-service",path = "/food")
public interface FoodFeignService {
    @GetMapping("/find/{id}")
    public R getFood(@PathVariable  Integer id);
}
